package cn.wolfcode.wolf2w.domain;

import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Transient;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;


@Setter
@Getter
@Document("scenicSpot")
public class ScenicSpot extends BaseDomain {
    private String name;
    private String image;
    private String phone;
    private String time;
    private String url;
    private int rank;
    private int state;
    private int tourist;
    private String detailId;

    /*public String getJsonString(){
        Map<String,Object> map = new HashMap<>();
        map.put("id", id);
        map.put("info", this.info);

        return JSON.toJSONString(map);
    }*/
}
